package com.grantz.function.bbs.core.inter;

import java.util.Optional;

import org.springframework.data.domain.Page;

import com.grantz.function.bbs.core.entity.CommentChild;
import com.grantz.model.bbs.CommentChildModel;
import com.grantz.model.bbs.CommentChildSearch;
import com.grantz.models.base.element.page.ElementPage;

public interface CommentChildService {

	CommentChild save(CommentChild entity);

	Optional<CommentChild> findOneById(String id);

	ElementPage<CommentChildModel> queryElementPage(CommentChildSearch query)throws Exception;
	
	Page<CommentChild> queryPage(CommentChildSearch query) throws Exception;

}
